package dome1;
//当一个子类继承了抽象类，必须对抽象方法进行重写
//所以抽象方法不能被private final static修饰!!!
public class Rect extends Shape{

    private double length;
    private double weight;

public Rect(){

}

    @Override
    public void draw() {
        System.out.println("画一个矩形........");
    }

    @Override
    public void calArea() {

    }
}
